<?php
class Newsletter_m extends Model{
      function Newsletter_m(){
          parent::Model();
          $this->load->database();
      }
      function is_existe($email){
           $query=$this->db->get_where('email_newsletter',array('email'=>$email));
      if($query->num_rows()==0) return false;
        return true;
      }
      function add_email($email){
           return $this->db->insert('email_newsletter',array('email'=>$email));
      }
}
?>
